#!/bin/bash

BACKUPFILE=backup-$(date +%Y-%m-%d)

archive=${1:-$BACKUPFILE}

tar czvf - `find . -mtime -1 -type f -print` > $archive.tar.gz

echo "Directory $PWD backed up in archive file \"$archive.tar.gz\"."

exit 0
